package edu.metrostate.capstonediner;

import javax.microedition.khronos.opengles.GL10;

import android.content.res.AssetManager;

public class PartTexture extends GameTexture {

	//	Texture ID							 		0   1    	2   	 3    	4     	5    	6     	7		8 	 	9     	10    11    	12    	13    14    	15    	16		17		18		19		20		21		22		23		24		25		26		27		28		29		30		31		32		33		34			35		36		37
	private final static float[] textureX =			{0f, 0f, 	222f,  	90f, 	64f, 	0f, 	0f, 	450f,	0f,  	32f, 	425f, 240f,   	330f,  	150f, 448f,   	448f,  	352f, 	0f,		224f,	192f,	0f,		256f,	288f,	418f,	346f,	96f,	310f,	162f,	0f,		320f,	384f,	200f,	128f,	160f,	480f,		556f,	512f,	0f};
	private final static float[] textureY =			{0f, 1032f, 179f,  	308f, 	1000f, 	308f,   193f,   308f,	532f, 	1000f, 	180f, 565f, 	308f, 	530f, 1000f, 	1000f, 	1000f, 	710f,	1000f,	1000f,	1000f,	1000f,	1000f,	1000f,	85f,	1000f,	184f,	698f,	850f,	1000f,	1000f,	310f,	1000f,	1000f,	1000f,		0f,		1000f,	1200f};
	private final static float[] textureWidth =		{0f, 102f, 	90f, 	110f,	32f, 	75f, 	80f,  	106f,	112f, 	32f, 	75f,  132f,  	100f,  	65f,  32f,  	32f,  	32f,  	142f,	32f,	32f,	32f,	32f,	32f,	32f,	80f,	32f,	90f,	150f,	150f,	32f,	32f,	138f,	32f,	32f,	32f,		800f,	32f,	32f};
	private final static float[] textureHeight =	{0f, 112f, 	90f, 	180f,	32f, 	180f,	80f,  	160f,	152f, 	32f, 	85f,  103f,  	187f,  	160f, 32f,  	32f,  	32f,  	125f,	32f,	32f,	32f,	32f,	32f,	32f,	100f,	32f,	96f,	140f,	114f,	32f,	32f,	176f,	32f,	32f,	32f,		1280f,	32f,	32f};
	
	public PartTexture(AssetManager assetManager, GL10 gl, String filename) {
		super(assetManager, gl, filename);
	}
	
	public float getX(int textureID) {
		return textureX[textureID] / width;
	}
	
	public float getY(int textureID) {
		return textureY[textureID] / height;
	}
	
	public float getWidth(int textureID) {
		return textureWidth[textureID] / width;
	}
	
	public float getHeight(int textureID) {
		return textureHeight[textureID] / height;
	}
}
